package com.dou.ourpro.pojo;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (Article)表实体类
 *
 * @author makejava
 * @since 2021-11-11 14:44:26
 */
@Data
public class Article extends Model<Article> {
    //文章ID
    private Long articleId;
    //发表用户的ID
    private Integer userId;
    //文章标题
    private String articleTitle;
    //文章内容
    private String articleContent;
    //发表时间
    private Date articleTime;
    //浏览量
    private Long articleView;
    //评论总数
    private Long articleCommentCount;



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.articleId;
    }
    }

